package com.ybkj.o2o.zhuanxian;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.client.RestTemplate;

@SpringBootApplication
@EnableRabbit
@MapperScan(basePackages = {"com.ybkj.o2o.zhuanxian.mapper"})
@ComponentScan(basePackages = {"com.ybkj.o2o.zhuanxian.common","com.ybkj.o2o.zhuanxian"})
public class ZhuanxianApplication {

  public static void main(String[] args) {
    SpringApplication.run(ZhuanxianApplication.class, args);
  }

  @Bean
  public RestTemplate restTemplate() {
    return new RestTemplate();
  }
}
